//
//  AboutMeController.m
//  LoveFreshBeen
//
//  Created by 魏根 on 2016/10/17.
//  Copyright © 2016年 魏根. All rights reserved.
//

#import "AboutMeController.h"

@interface AboutMeController ()



@end

@implementation AboutMeController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    self.view.backgroundColor = [UIColor lightGrayColor];
    
    self.view.backgroundColor = [UIColor colorWithRed:239/255.0 green:239/255.0 blue:239/255.0 alpha:1.0];
    
    [self setHeaderNAV];
}

- (void)setHeaderNAV{
    
    
    
    //头view
    UIView *myNAV = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 80)];
    
    [self.view addSubview:myNAV];
    
    myNAV.backgroundColor = [UIColor whiteColor];
    //中间的设置
    UILabel *title = [[UILabel alloc]init];
    
    [myNAV addSubview:title];
    
    [title mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.center.equalTo(myNAV);
        
    }];
    
    title.text = @"关于作者";
    
    title.font = [UIFont systemFontOfSize:20];
    //左边的返回按钮
    UIButton *backBtn = [[UIButton alloc]init];
    
    [backBtn setBackgroundImage:[UIImage imageNamed:@"v2_goback"] forState:UIControlStateNormal];
    
    [myNAV addSubview:backBtn];
    
    [backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.leading.equalTo(myNAV).offset(10);
        
        make.centerY.equalTo(myNAV);
    }];
    
    [backBtn addTarget:self action:@selector(backBtnDidClick) forControlEvents:UIControlEventTouchUpInside];
}

- (void)backBtnDidClick{
    
    [self.navigationController popViewControllerAnimated:YES];
}



@end
